NewBank
BankIndex = NewBank(Size)
 
Parameters:

    Size = The size in bytes of this memory bank
Returns:

    BankIndex = The Index of the created bank
 

      NewBank will allocate a memory bank of the users required size, ready for use. Memory banks are general purpose storage areas. You can store any type of information you like within them, ranging from text, numbers and binary information. They're generally used when you need to deal with raw data files.



FACTS:


      * When the Bank is created the allocated memory is cleared to zero.




Mini Tutorial:


      Create a bank and display it's status and size.

  
  
; Request a New Memory Bank and make it 1000 bytes in size
  MyBank=NewBank(1000)
  
; Display the status of this bank
  Print "Bank Satus:"+Str$(GetBankStatus(MyBank))
  Print "Bank Size:"+Str$(GetBankSize(MyBank))
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Bank Status: 1
  Bank Size: 1000
  

 
Related Info: CreateBank | DeleteBank | GetBankPTR | GetFreeBank | Memory :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com